package org.csmzxy2334;

import java.util.Scanner;

public class 第二节课作业328 {
    public static void main(String[] args) {
        int password = 123456;
        int input;
        do {

            System.out.println("请输入密码:");
            Scanner scanner = new Scanner(System.in);
            input = scanner.nextInt();
            if (input != password) {
                System.out.println("密码输入错误");
            }
        } while (input != password);
        System.out.println("密码输入正确");
    }
}